import request from '@/utils/request'

// 查询recall列表
export function listRecall(query) {
  return request({
    url: '/pom/recall/list',
    method: 'get',
    params: query
  })
}

// 查询recall详细
export function getRecall(id) {
  return request({
    url: '/pom/recall/' + id,
    method: 'get'
  })
}

// 新增recall
export function addRecall(data) {
  return request({
    url: '/pom/recall',
    method: 'post',
    data: data
  })
}

// 修改recall
export function updateRecall(data) {
  return request({
    url: '/pom/recall',
    method: 'put',
    data: data
  })
}

// 删除recall
export function delRecall(id) {
  return request({
    url: '/pom/recall/' + id,
    method: 'delete'
  })
}
